<?php TPL::output('global/header.tpl.htm'); ?>

		<?php TPL::output('account/setting/setting_header.tpl.htm'); ?>
		<form id="setting_form" method="post" action="account/ajax/privacy_setting/">
			<div class="v_setting">
				<h4 class="h4">微博设置</h4>
					<div class="v_setMain v_sver">
					<span class="i_cl_01">是否允许别人访问我的微博：</span>&nbsp;&nbsp;<input name="weibo_visit" id="weibo_visit" type="radio" value="1" <?php if ($this->user_info["weibo_visit"] == 1) { ?>checked="checked"<?php } ?>/> 是 &nbsp; <input name="weibo_visit" id="weibo_visit" type="radio" value="0" <?php if ($this->user_info["weibo_visit"] == 0) { ?>checked="checked"<?php } ?> /> 否
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<span class="i_cl_01">默认同步新浪微博：</span>&nbsp;&nbsp;<input name="weibo_syn_s" id="weibo_syn_s" type="checkbox" value="1" <?php 
					if ($this->user_info["weibo_syn"] == 1 or $this->user_info["weibo_syn"] == 3) { ?>checked="checked"<?php } ?>/> 
					&nbsp;&nbsp;&nbsp;&nbsp;
					<span class="i_cl_01">默认同步腾讯微博：</span>&nbsp;&nbsp;<input name="weibo_syn_t" id="weibo_syn_t" type="checkbox" value="2" 
					<?php if ($this->user_info["weibo_syn"] == 2 or $this->user_info["weibo_syn"] == 3) { ?> checked="checked"<?php } ?>/> 
				
				</div>
				
				<h4 class="h4" id="inbox">私信设置</h4>
				<div class="v_setMain v_sver">
					<span class="i_cl_01">谁都可以给我发短信：</span>&nbsp;&nbsp;<input name="inbox_recv" id="inbox_recv" type="radio" value="0" <?php if ($this->user_info["inbox_recv"] == 0) { ?>checked="checked"<?php } ?>/> 所有人 &nbsp; <input name="inbox_recv" id="inbox_recv" type="radio" value="1" <?php if ($this->user_info["inbox_recv"] == 1) { ?>checked="checked"<?php } ?> /> 我关注的人
                </div>
                
                <h4 class="h4" id="email">邮件设置</h4>
                <div class="v_setMain v_sver">
                	<h5 class="i_cl_01" >什么情况下给我发邮件</h5>
                	<p class="v_setLsit">
                        <span><input type="checkbox" name="sender_11" value="1" <?php if ($this->email_setting['sender_11'] == 1) { ?>checked="checked"<?php } ?> /> 有人关注我 </span><span><input type="checkbox" name="sender_13" value="1" <?php if ($this->email_setting['sender_13'] == 1) { ?>checked="checked"<?php } ?> /> 有人邀请我评价站点</span>
                        <span><input type="checkbox" name="sender_14" value="1" <?php if ($this->email_setting['sender_14'] == 1) { ?>checked="checked"<?php } ?> /> 我关注的站点有了新回复 </span><span><input type="checkbox" name="sender_15" value="1" <?php if ($this->email_setting['sender_15'] == 1) { ?>checked="checked"<?php } ?> /> 有人向我发送私信</span>
                    </p>
                </div>
                <h4 class="h4" id="notifications">通知设置</h4>
                <div class="v_setMain v_sver">
                	<h5 class="i_cl_01">什么情况下通知我</h5>
                    <p class="v_setLsit">
                     <?php foreach($this->notify_actions as $key => $val) { ?>
                        <?php if ($val['user_setting']) { ?>
                        <span><input name="notification_setting[<?php echo $key;?>]" type="checkbox" value="1" <?php if (!in_array($key, $this->notification_setting['data']) || !$this->notification_setting['data']) { ?>checked="checked"<?php } ?> /> <?php echo $val['desc'];?></span>
                        <?php } ?>
                    <?php } ?>
                    </p>
                </div>
                
                <p class="v_submit i_tr"><a title="保存" href="javascript:;" onclick="ajax_post($('#setting_form'))" class="i_replay_but2">保存</a></p>
			</div>
		</form>
		<?php TPL::output('account/setting/setting_footer.tpl.htm'); ?>

<?php TPL::output('global/footer.tpl.htm'); ?>